<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>



<div class="span9">

    <?php $causa = $this->session->userdata('causa'); ?>
    <div class="breadcrumb">
        <h4 style="margin: 0px;"><?php echo $causa['caratula'] . ' - ' . $causa['nroExpediente']; ?></h4>
    </div>    
    
    <?php echo get_message(); ?>

    <h2><?php echo $titulo; ?></h2>
    <div class="container-table">
        <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-hover table-bordered" id="example">
            <thead>
                <tr>
                    <th> </th>
                    <th>Carátula</th>
                    <th>Número de Expediente</th>
                    <th>Juzgado</th>
                    <th>Fiscalia</th>
                    <th>Acciones</th>
                </tr>
            </thead>
            <tbody>
                <?php
                if (!empty($caratulas)) {
                    $color = 'odd';
                    $i=1;
                    foreach ($caratulas as $caratula) {
                        $color = ( $color == 'odd') ? 'even' : 'odd';
                        ?>
                        <tr class="<?php echo $color; ?>">
                            <td><?php echo $i; ?></td>
                            <td><?php echo $caratula->nombre; ?></td>
                            <td><?php echo $caratula->nroExpediente; ?></td>
                            <td><?php echo $caratula->juzgado; ?></td>
                            <td><?php echo $caratula->fiscalia; ?></td>
                            <td>
                                <a class="btn btn-small" href="<?php echo base_url('causas/caratulas/editar/' . $caratula->id); ?>"><span class="icon-eye-open"></span> | <span class="icon-pencil"></span></a>
                            </td>
                        </tr>
                        <?php
                        $i++;
                    }
                }
                ?>
            </tbody>
        </table>
    </div>
</div>